
// 实现
// 把不同类之间 共有的属性和方法 通过接口提取, 再由类来实现(implements)

/* interface Alarm {
    alert(): void,
}

class SecurityDoor implements Alarm {
    alert(): void {
        console.log("警报警报");
    }
}

class Car implements Alarm {
    alert(): void {
        console.log("警报警报");
    }
}
 */


interface Prop {
    name: string,
    age: string,
    say(): void,
}


class Animal implements Prop {
    public name: string;
    public age: string;
    constructor(name, age) {
        this.name = name;
    }
    say() {
        console.log(this.name, this.age);
    }
}






export default 100;